import axios from '../axios'
//查找在新建表中

export const addRecordInLhsxb = (data,params) => {
  return axios({
    url: '/lhsxb/add',
    method: 'post',
    data,
    params
  })
}

export const addRecordInHjxwb = (data,params) => {
  return axios({
    url: '/hjxwb/add',
    method: 'post',
    data,
    params
  })
}

export const addRecordInStwhb = (data,params) => {
  return axios({
    url: '/stwhb/add',
    method: 'post',
    data,
    params
  })
}

export const addRecordInJkwhb = (data,params) => {
  return axios({
    url: '/jkwhb/add',
    method: 'post',
    data,
    params
  })
}

export const addRecordInHyxxb = (data,params) => {
  return axios({
    url: '/hyxxb/add',
    method: 'post',
    data,
    params
  })
}

export const addRecordAllLhsxb = (params) => {
  return axios({
    url: '/lhsxb/addRecord',
    method: 'get',
    params
  })
}
export const addRecordAllHjxwb = (params) => {
  return axios({
    url: '/hjxwb/addRecord',
    method: 'get',
    params
  })
}
export const addRecordAllStwhb = (params) => {
  return axios({
    url: '/stwhb/addRecord',
    method: 'get',
    params
  })
}
export const addRecordAllJkwhb = (params) => {
  return axios({
    url: '/jkwhb/addRecord',
    method: 'get',
    params
  })
}

export const addRecordAllHyxxb = (params) => {
  return axios({
    url: '/hyxxb/addRecord',
    method: 'get',
    params
  })
}

export const findByPageInLhsxb = (params) => {
  return axios({
    url: '/lhsxb/find',
    method: 'get',
    params
  })
}
export const findByPageInHjxwb = (params) => {
  return axios({
    url: '/hjxwb/find',
    method: 'get',
    params
  })
}
export const findByPageInStwhb = (params) => {
  return axios({
    url: '/stwhb/find',
    method: 'get',
    params
  })
}
export const findByPageInJkwhb = (params) => {
  return axios({
    url: '/jkwhb/find',
    method: 'get',
    params
  })
}

export const findByPageInHyxxb = (params) => {
  return axios({
    url: '/hyxxb/find',
    method: 'get',
    params
  })
}

export const addupdatelhsxbFlag = (data) => {
  return axios({
    url: '/lhsxb/addupdateFlag',
    method: 'post',
    data
  })
}

export const deladdRecordlhsxb = (id) => {
  return axios({
    url: '/lhsxb/' + id,
    method: 'delete'
  })
}

export const addupdatehjxwbFlag = (data) => {
  return axios({
    url: '/hjxwb/addupdateFlag',
    method: 'post',
    data
  })
}

export const deladdRecordhjxwb = (id) => {
  return axios({
    url: '/hjxwb/' + id,
    method: 'delete'
  })
}
export const addupdatestwhbFlag = (data) => {
  return axios({
    url: '/stwhb/addupdateFlag',
    method: 'post',
    data
  })
}

export const deladdRecordstwhb = (id) => {
  return axios({
    url: '/hyxxb/add',
    method: 'post',

  })
}
export const findByIdAndFlagInLhsxb = (params) => {
  return axios({
    url: '/lhsxb/',
    method: 'get',
    params
  })
}
export const findByIdAndFlagInHjxwb = (params) => {
  return axios({
    url: '/hjxwb/',
    method: 'get',
    params
  })
}

export const findByIdAndFlagInStwhb = (params) => {
  return axios({
    url: '/stwhb/',
    method: 'get',
    params
  })
}
export const findByIdAndFlagInJkwhb = (params) => {
  return axios({
    url: '/jkwhb/',
    method: 'get',
    params
  })
}
export const findByIdAndFlagInHyxxb = (params) => {
  return axios({
    url: '/hyxxb/',
    method: 'get',
    params
  })
}

export const updateInLhsxb = (data) => {
  return axios({
    url: '/lhsxb/update',
    method: 'post',
    data
  })
}
export const updateInHjxwb = (data) => {
  return axios({
    url: '/hjxwb/update',
    method: 'post',
    data
  })
}
export const updateInStwhb = (data) => {
  return axios({
    url: '/stwhb/update',
    method: 'post',
    data
  })
}
export const updateInJkwhb = (data) => {
  return axios({
    url: '/jkwhb/update',
    method: 'post',
    data
  })
}
export const updateInHyxxb = (data) => {
  return axios({
    url: '/hyxxb/update',
    method: 'delete'
  })
}
export const addupdatejkwhbFlag = (data) => {
  return axios({
    url: '/jkkwhb/addupdateFlag',
    method: 'post',
    data
  })
}

export const deladdRecordjkwhb = (id) => {
  return axios({
    url: '/jkwhb/' + id,
    method: 'delete'
  })
}
export const addupdatehyxxbFlag = (data) => {
  return axios({
    url: '/hyxxb/addupdateFlag',
    method: 'post',
    data
  })
}

export const deladdRecordhyxxb = (id) => {
  return axios({
    url: '/hyxxb/' + id,
    method: 'delete'
  })
}


export const findAllInLhsxb = (params) => {
  return axios({
    url: '/lhsxb/all',
    method: 'get',
    params
  })
}
export const findAllInHjxwb = (params) => {
  return axios({
    url: '/hjxwb/all',
    method: 'get',
    params
  })
}
export const findAllInStwhb = (params) => {
  return axios({
    url: '/stwhb/all',
    method: 'get',
    params
  })
}
export const findAllInJkwhb = (params) => {
  return axios({
    url: '/jkwhb/all',
    method: 'get',
    params
  })
}
export const findAllInHyxxb = (params) => {
  return axios({
    url: '/hyxxb/all',
    method: 'get',
    params
  })
}
